package main.java.servlet.test;

/**
 * 讲师类继承员工类
 */
public class Teacher extends Employee {

    public static void main(String[] args) {
        Teacher teacher = new Teacher();
        // 调用父类方法,设置员工账号
        teacher.setNumber("2020202");
        System.out.println(teacher.getNumber());
    }
}
